package com.hanliy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author hanyulin
 * @apiNote 启动类
 * @date 2022/2/8 14:16
 */
@SpringBootApplication
public class AlipayApplication {
    public static void main(String[] args){
        SpringApplication.run(AlipayApplication.class, args);
    }

/*    @PostConstruct
    public void aliPayInit() {
        AlipayProperties aliPayProperties = SpringUtil.getBean(AlipayProperties.class);
        AliPayApiConfig aliPayApiConfig = AliPayApiConfig.builder()
                .setAppId(aliPayProperties.getAppId())
                .setAliPayPublicKey(aliPayProperties.getPublicKey())
                .setPrivateKey(aliPayProperties.getPrivateKey())
                .setServiceUrl(aliPayProperties.getServiceUrl())
                .setCharset("UTF-8")
                .setSignType("RSA2")
                .build();
        AliPayApiConfigKit.putApiConfig(aliPayApiConfig);
    }*/
}
